package com.yjz.finnally语句与return代码的关系;

public class FinallyReturnExample {
    public static void main(String[] args) {

        System.out.println(test());
    }

    public static String test() {
        try {
            System.out.println("Try block");
            return "Return from try";
        } finally {
            System.out.println("Finally block");
            return "Return from finally";
        }
    }
}